import request from '@/utils/request'

// 查询教研组列表
export function listJyResearchGroup(query) {
  return request({
    url: '/research/jyResearchGroup/list',
    method: 'get',
    params: query
  })
}

// 查询教研组详细
export function getJyResearchGroup(id) {
  return request({
    url: '/research/jyResearchGroup/' + id,
    method: 'get'
  })
}

// 新增教研组
export function addJyResearchGroup(data) {
  return request({
    url: '/research/jyResearchGroup',
    method: 'post',
    data: data
  })
}

// 修改教研组
export function updateJyResearchGroup(data) {
  return request({
    url: '/research/jyResearchGroup',
    method: 'put',
    data: data
  })
}

// 删除教研组
export function delJyResearchGroup(id) {
  return request({
    url: '/research/jyResearchGroup/' + id,
    method: 'delete'
  })
}
